import { Component } from 'react';
import { Data, glabalContext } from "./common/data"
import Child11 from './child11';
import Child22 from './chlid22';
// 3. 解构glabalContext
const { Provider } = glabalContext
class Father extends Component {
    state = {
        ...Data
    }
    render() {
        return (
            <Provider value={this.state}>
                父组件 = {this.state.role}
                <Child11 />
                <Child22 />
            </Provider>
        );
    }
}

export default Father;